﻿using System.ComponentModel.DataAnnotations;
using EPiServer.Core;
using EPiServer.DataAnnotations;

namespace StarterKit.Web.Models.Blocks
{
    [ContentType(
        AvailableInEditMode = false, // Just for settings, not able to add from edit mode
        DisplayName = "Settings Block",
        Description = "Contains global settings data for this site.",
        GroupName = "Default",
        Order = 100)]
    public class SettingsBlockData : BaseBlockData
    {
        [Searchable(false)]
        [Display(
            Name = "CartPage",
            Description = "The page that displays the shopping cart.",
            Order = 10)]
        public virtual PageReference CartPage { get; set; }

        [Searchable(false)]
        [Display(
            Name = "WishListPage",
            Description = "The page that displays the wish list.",
            Order = 20)]
        public virtual PageReference WishListPage { get; set; }

        [Searchable(false)]
        [Display(
            Name = "CheckoutPage",
            Description = "The checkout page to complete your order.",
            Order = 30)]
        public virtual PageReference CheckoutPage { get; set; }

        [Searchable(false)]
        [Display(
            Name = "YourOrdersPage",
            Description = "The page that displays the order history.",
            Order = 40)]
        public virtual PageReference YourOrdersPage { get; set; }

        [Searchable(false)]
        [Display(
            Name = "MarketNotSupportedPage",
            Description = "The page that displays not available market.",
            Order = 40)]
        public virtual PageReference MarketNotSupportedPage { get; set; }

        [Display(
            Name = "Search Page",
            Description = "The page to Search.",
            Order = 50)]
        public virtual ContentReference SearchPage { get; set; }

    }
}